import Cookies from 'js-cookie'
import config from '#/utils/config'


const tokenName = config.tokenName

const tokenCookies = {
    setToken(token) { Cookies.set(tokenName, token) },// 定义当前token
    getToken: () => Cookies.get(tokenName),
    removeToken: () => Cookies.remove(tokenName)
}

export {
    tokenCookies
}
